<?php

namespace app\admin\model;

use think\Model;

/**
 * @mixin \think\Model
 */
class MissionDissent extends Model
{
   
	protected $pk = 'id';

    public function userInfo(){
    	return $this->hasone("user",'u_id',"u_id");
    }


    /**
     * 获取全部状态
     * @var [type]
     */
    public static function  getStatus($int=0){
    	$res =  [
    		0=>'待处理',
    		1=>'处理中',
    		2=>'处理完成',    		   
    	];
    	return $int>0 ? $res[$int]:$res;
    }
}
